#include <stdio.h>

struct Date {
  int year;
  int month;
  int day;
};

struct Student {
  int num;
  char name[6];
  char sex;
  int age;
  // 使用另一个结构体作为成员
  struct Date birthday;
} global_stu;

int main(void) {
  struct Student stu1, stu2;
  printf("sizeof(struct Date) = %lu\n", sizeof(struct Date));
  printf("sizeof(struct Student) = %lu\n", sizeof(stu1));
  printf("&stu1=%p, &stu2=%p\n", &stu1, &stu2);
  printf("&stu1.age=%p, &stu1.birthday.day=%p\n", &stu1.age,
         &stu1.birthday.day);
  return 0;
}
